package com.hd.mapper;

import com.hd.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by 1 on 2017/11/6.
 */
public interface PermissionMapper extends BaseMapper<Permission>{

    public List<Integer> searchMenuByRoleId(Integer roleId);

    public Integer deleteByRoleId(Integer roleId);

    public Integer add(@Param("roleId") Integer roleId, @Param("menuId") Integer menuId);

}
